package com.cjh.wechat.commom.vo;

import java.io.Serializable;

//聊天消息承载vo
public class ReceiveMessVo implements Serializable
{
    private static final long serialVersionUID = -3204974590749306654L;
    private String            emit;                                    // 消息类型friend|system
    private SysMess           sysMess;                                 // 系统消息
    private UserMess          userMess;                                // 用户消息
    
    public String getEmit()
    {
        return emit;
    }
    
    public void setEmit(String emit)
    {
        this.emit = emit;
    }
    
    public SysMess getSysMess()
    {
        return sysMess;
    }
    
    public void setSysMess(SysMess sysMess)
    {
        this.sysMess = sysMess;
    }
    
    public UserMess getUserMess()
    {
        return userMess;
    }
    
    public void setUserMess(UserMess userMess)
    {
        this.userMess = userMess;
    }
    
    public static class UserMess implements Serializable
    {
        private static final long serialVersionUID = 3897570831270988526L;
        private String            username;
        private String            avatar;
        private String            id;
        private String            type;
        private String            content;
        private boolean           mine;
        private String            fromid;
        private Long              timestamp;
        
        public String getContent()
        {
            return content;
        }
        
        public void setContent(String content)
        {
            this.content = content;
        }
        
        public String getUsername()
        {
            return username;
        }
        
        public void setUsername(String username)
        {
            this.username = username;
        }
        
        public String getAvatar()
        {
            return avatar;
        }
        
        public void setAvatar(String avatar)
        {
            this.avatar = avatar;
        }
        
        public String getId()
        {
            return id;
        }
        
        public void setId(String id)
        {
            this.id = id;
        }
        
        public String getType()
        {
            return type;
        }
        
        public void setType(String type)
        {
            this.type = type;
        }
        
        public boolean isMine()
        {
            return mine;
        }
        
        public void setMine(boolean mine)
        {
            this.mine = mine;
        }
        
        public String getFromid()
        {
            return fromid;
        }
        
        public void setFromid(String fromid)
        {
            this.fromid = fromid;
        }
        
        public Long getTimestamp()
        {
            return timestamp;
        }
        
        public void setTimestamp(Long timestamp)
        {
            this.timestamp = timestamp;
        }
        
    }
    
    public static class SysMess implements Serializable
    {
        private static final long serialVersionUID = -5370157685805130359L;
        private boolean           system;
        private Integer           id;
        private String            type;
        private String            content;
        
        public boolean isSystem()
        {
            return system;
        }
        
        public void setSystem(boolean system)
        {
            this.system = system;
        }
        
        public Integer getId()
        {
            return id;
        }
        
        public void setId(Integer id)
        {
            this.id = id;
        }
        
        public String getType()
        {
            return type;
        }
        
        public void setType(String type)
        {
            this.type = type;
        }
        
        public String getContent()
        {
            return content;
        }
        
        public void setContent(String content)
        {
            this.content = content;
        }
    }
}
